'use strict';

var soyModule = angular.module('soyModule', ['ui', 'ngResource'], function ($routeProvider) {
//    console.log("Configure route provider");
    $routeProvider
        .when("/soyHtml", {
            templateUrl: "partials/soyHtml.html",
            controller: UserController
        })
        .when("/addUser", {
        	templateUrl: "partials/addUser.jsp",
            controller: UserController
        })
        .when("/home", {
        	templateUrl: "partials/home.jsp",
            controller: UserController
        })
        .when("/galeria", {
        	templateUrl : "partials/galeria.jsp",
            controller: UserController
        })
        .when("/index", {
        	templateUrl: "partials/galeria.jsp",
            controller: UserController
        })
        .when("/index.html", {
        	templateUrl : "index.html",
            controller: UserController
        })
        .when("/", {
            redirectTo: "/soyHtml"
        })
        .otherwise({
            redirectTo: "/soyHtml"
        });
})
    .factory("Resources", ResourcesImpl)
	.service("Service", ServiceImpl);
